package multipowny.ssrr;

public class ChanceMove extends Chance{
	int squareID;
	MultipownyActivity multipownyActivity;

	public ChanceMove(String theTitel, String theStory, int theSquareID, int theChanceID){
		super();
		titel = theTitel;
		story = theStory;
		squareID = theSquareID;
		chanceID = theChanceID;
	}

	public void onChanceMove(){
		if (multipownyActivity.activePlayer.playerID < squareID){
			multipownyActivity.activePlayer.playerID=squareID;
			multipownyActivity.activePlayer.money=multipownyActivity.activePlayer.money+2000;
		}else{
			multipownyActivity.activePlayer.playerID=squareID;

		}
	}
}